def computeCommission(saleAmount):
    money = 0
    if saleAmount > 10000:
        money = 0.08*5000 + 0.1*(10000-5000) + 0.12*(saleAmount-10000)
    elif saleAmount > 5000:
        money = 0.08 * 5000 + 0.1 * (saleAmount - 5000)
    else:
        money = 0.08 * saleAmount
    return money

print(format("销售额",">4s"),format("佣金",">8s"))
for i in range(10000,100001,5000):
    print(format(i,">6d"),format(computeCommission(i),">10.1f"))


